#pragma once

#include "ISpreadItem.h"
#include "Region.h"

template<typename T>
class SpreadItem : public Region<T>
{
public:
	BEGIN_DEFINE_CLASS(CLASSID_NULL)
		USE_INTERFACE_ENTRY(Region)
		DEFINE_INTERFACE_ENTRY(ISpreadItem)
	END_DEFINE_CLASS()

	SpreadItem(){}
	virtual ~SpreadItem(){}

	virtual Rect Rectangle() const
	{
		return Rect(GetPoint(0),GetPoint(1));
	}
};